import { IMenuDataItem, RouteObject } from 'src/interface';

export const initStates = {
  // 权限菜单列表
  menus: [] as string[],
  // 权限按钮列表
  buttons: [] as string[],
  // 菜单列表
  menuInfo: [] as IMenuDataItem[],
  // 动态路由
  dynamicRoute: null as RouteObject[] | null,
  // 默认打开路径
  defaultOpenPath: '/',
};

export type State = typeof initStates;
